<?php
/**
 * Created by PhpStorm.
 * User: spring
 * Date: 18-11-27
 * Time: 下午2:19
 */
function getActionName($action){
    $name = "";
    switch ($action){
        case "purview" : $name = "权限";
            break;
        case "logs": $name = "日志";
            break;
        case "news": $name = "新闻";
            break;
        case "public": $name = "";
            break;
        case "home": $name = "主页面";
            break;
        case "role": $name = "角色";
            break;
        case "admin": $name = "账户";
            break;
        case "adminlog": $name = "系统日志";
            break;
        case "resetpass": $name = "修改密码";
            break;
        case "login": $name = "登录";
            break;
        case "logout": $name = "退出";
            break;

        case "index": $name = "列表";
            break;
        case "create": $name = "添加";
            break;
        case "store": $name = "保存";
            break;
        case "show": $name = "详情";
            break;
        case "edit": $name = "修改";
            break;
        case "update": $name = "保存";
            break;
        case "destroy": $name = "删除";
            break;
        case "sort": $name = "排序";
            break;
        case "assign": $name = "权限分配";
            break;
    }
    return $name;
}